package com.shoux.api.web.entity.apiData;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoZhi
 * @since 2022-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("interface_param")
@ApiModel(value="InterfaceParamEntity对象", description="")
public class InterfaceParamEntity extends Model<InterfaceParamEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "接口表主键id")
    private String tableId;

    @ApiModelProperty(value = "参数名")
    private String paramName;

    @ApiModelProperty(value = "参数内容集合查询sql")
    private String parameListSql;

    @ApiModelProperty(value = "参数种类(0请求头1 GET请求参数2POST请求参数)")
    private Integer type;

    @ApiModelProperty(value = "0(String 通过，截取）1(list 直接就是list)  2(List<map> 有关联的Key-value)")
    private Integer returnType;

    @ApiModelProperty(value = "参数字段细分类(0:普通字段 1:用于查询当前页码的字段 2:当前页返回的最大条数的字段)")
    private Integer fieldDetailType;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
